package src.com.doit.Demo05;

public class A {
    private String name = "外部类成员";
    int a = 30;
    public class  Inner{
        int a = 21;
        public void method()
        {
            int a = 10;
            System.out.println(name);
            System.out.println(a);
            System.out.println(this.a);
            System.out.println(A.this.a);
        }
    }
    public B get()
    {
        return new B();
    }
    public class B implements C{//这个叫多态的前提

        @Override
        public void fly() {
            System.out.println("I CAN FLY");
        }
    }
}
